import pytest
import logging
import requests
import os
from log import caiji_log
from mail import  send_mail
if __name__ == '__main__':
    caiji_log()
    pytest.main(['-s','test_case1.py',"--alluredir=./报告数据","--clean-alluredir"])
    os.system("allure generate ./报告数据 -o ./测试报告 --clean")
    send_mail(["www.log",'./测试报告/index.html'])


